home *** CD-ROM | disk | FTP | other *** search
/ Hobby PC 13 / Hobby PC 13.iso / assets / Asset Library / Images / Mouseover Buttons / For White Backgrounds / purplebounce / fxitems.xml < prev   
Extensible Markup Language  |  2001-04-09  |  6KB  |  80 lines

  1. <?xml version="1.0" standalone="yes"?>
  2.  
  3. <Items>
  4. <Template>
  5.     <Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
  6.         <Icon SRC="%Filename%"/>
  7.         <Icon2 SRC="%Filename%"/>
  8.         <Description>%ASK:Description:%{Button ALT Text}</Description>
  9.         <Filename SRC="%Filename%"/>
  10.         <Filename2 SRC="%Filename%"/>
  11.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  12.         var src, src2, dest, attr, attr2, dst2, dst;
  13.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  14.         src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
  15.  
  16.         function buildpath()
  17.                 {
  18.                 if (ActiveDocument.InCurrentProject)
  19.                         {
  20.                         dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
  21.                         dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  22.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
  23.                         attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
  24.                         }
  25.                 else
  26.                         {
  27.                         dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
  28.                         dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  29.                         attr = "images/buttons/default/%Filename%";
  30.                         attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  31.                         }
  32.                 }
  33.  
  34.         function dropfxnow()
  35.                 {
  36.                 Application.FX.CopyFile(src, dst);
  37.                 Application.FX.CopyFile(src2, dst2);
  38.                 Application.FX.SelectDropPoint();
  39.                 AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
  40.                 Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  41.                 Application.FX.ShowDialog('ANCHOR');
  42.                 }
  43.  
  44.         // First, check if the file is saved
  45.         if (ActiveDocument.Path != "")
  46.                 {
  47.                 buildpath();
  48.                 dropfxnow();
  49.                 }
  50.         else
  51.                 {
  52.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  53.  
  54.                 if (ans == 1)
  55.                         {
  56.                         ActiveDocument.SaveAs();
  57.                         }
  58.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  59.                         {
  60.                         buildpath();
  61.                         dropfxnow();
  62.                         }
  63.                 }
  64.         
  65.         ]]>
  66.       </SCRIPT>
  67.     </Item>
  68. </Template>
  69. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpattn"><Icon SRC="bn_wpattn.gif"/><Icon2 SRC="(bn)wpattn.gif"/><Description>Attention</Description><Filename SRC="bn_wpattn.gif"/><Filename2 SRC="(bn)wpattn.gif"/></Item>
  70. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpdown"><Icon SRC="bn_wpdown.gif"/><Icon2 SRC="(bn)wpdown.gif"/><Description>Down</Description><Filename SRC="bn_wpdown.gif"/><Filename2 SRC="(bn)wpdown.gif"/></Item>
  71. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpemail"><Icon SRC="bn_wpemail.gif"/><Icon2 SRC="(bn)wpemail.gif"/><Description>Email</Description><Filename SRC="bn_wpemail.gif"/><Filename2 SRC="(bn)wpemail.gif"/></Item>
  72. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpfaq"><Icon SRC="bn_wpfaq.gif"/><Icon2 SRC="(bn)wpfaq.gif"/><Description>FAQ</Description><Filename SRC="bn_wpfaq.gif"/><Filename2 SRC="(bn)wpfaq.gif"/></Item>
  73. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpgoback"><Icon SRC="bn_wpgoback.gif"/><Icon2 SRC="(bn)wpgoback.gif"/><Description>Go Back</Description><Filename SRC="bn_wpgoback.gif"/><Filename2 SRC="(bn)wpgoback.gif"/></Item>
  74. <Item Type="File" CLASS="Mouseover Button" ID="bn_wphelp"><Icon SRC="bn_wphelp.gif"/><Icon2 SRC="(bn)wphelp.gif"/><Description>Help</Description><Filename SRC="bn_wphelp.gif"/><Filename2 SRC="(bn)wphelp.gif"/></Item>
  75. <Item Type="File" CLASS="Mouseover Button" ID="bn_wphome"><Icon SRC="bn_wphome.gif"/><Icon2 SRC="(bn)wphome.gif"/><Description>Home</Description><Filename SRC="bn_wphome.gif"/><Filename2 SRC="(bn)wphome.gif"/></Item>
  76. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpnext"><Icon SRC="bn_wpnext.gif"/><Icon2 SRC="(bn)wpnext.gif"/><Description>Next</Description><Filename SRC="bn_wpnext.gif"/><Filename2 SRC="(bn)wpnext.gif"/></Item>
  77. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpprev"><Icon SRC="bn_wpprev.gif"/><Icon2 SRC="(bn)wpprev.gif"/><Description>Previous</Description><Filename SRC="bn_wpprev.gif"/><Filename2 SRC="(bn)wpprev.gif"/></Item>
  78. <Item Type="File" CLASS="Mouseover Button" ID="bn_wpup"><Icon SRC="bn_wpup.gif"/><Icon2 SRC="(bn)wpup.gif"/><Description>Up</Description><Filename SRC="bn_wpup.gif"/><Filename2 SRC="(bn)wpup.gif"/></Item>
  79.  
  80. </Items>